#include"udpclient.hpp"

using namespace std;
using namespace udpclient;

void Usage()
{
    cout<<"Usage:"<<endl<<"./client severip severport"<<endl;
}

int main(int argc ,char*args[])
{
    if(argc!=3)
    {   
        Usage();
        exit(USAGE_ERR);
    }
    string severip = args[1];
    uint16_t severport = atoi(args[2]);
    client clt(severip,severport);
    clt.init();
    clt.start();
    return 0;
}
